package com.forekenow.Demo8;

import java.awt.*;

public class GUIDemo extends Frame {
    public  GUIDemo(String title){
        this.setTitle(title);
        this.setSize(490,400);
        this.setVisible(true);
    }
public void  init(){
    Button button = new Button("按钮");
}
    public static void main(String[] args) {
        GUIDemo guiDemo = new GUIDemo("窗口");
        guiDemo.init();

    }
}
